﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Themes/Main.master" AutoEventWireup="true"
    CodeBehind="SchoolEdit.aspx.cs" Inherits="TrainingsApp.IPADApp.Master.SchoolEdit" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.1" Namespace="DevExpress.Web.ASPxEditors"
    TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        body
        {
            margin: 0px;
            padding: 0px;
            font-size: 12px;
            font-family: "微软雅黑";
        }
        
        .editform
        {
            border: 1px solid black;
            padding: 5px;
            margin-top: 5px;
        }
        
        .editform .header
        {
            height: 30px;
            font-size: 16px;
            line-height: 30px;
            font-weight: 700;
            border-bottom: 1px solid #000099;
        }
        .editform .title
        {
            height: 30px;
            padding-top: 3px;
            padding-bottom: 3px;
            width: 15%;
            font-weight: 600;
        }
        
        .editform .input
        {
          
            height: 30px;
            width: 35%;
            font-weight: 600;
            padding-top: 3px;
            padding-bottom: 3px;
            
        }
        
        .editform .saves, .backs
        {
            padding-top: 10px;
            padding-bottom: 10px;
            border-top: 3px solid black;
            height:50px;
            width:50%;
         padding-left:5px;
         padding-right:5px;
          
        }
        
        .editform .operat
        {
            background-color: #CCC;
            border-top: 3px solid black;
            padding-top:8px;
            padding-bottom:8px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">
        function OnProvinceChange(s, e) {
            cbxArea.PerformCallback(cbxProvince.GetValue().toString());
        }

        function OnAreaChange(s, e) {
            cbxRegion.PerformCallback(cbxArea.GetValue().toString());
        }

        function OnRegionChange(s, e) {
            cbxTown.PerformCallback(cbxRegion.GetValue().toString());
        }

     
    </script>
    <table cellpadding="0" class="editform" width="100%" cellspacing="0" border="0">
        <tr class="header">
            <td class="header" colspan="4">
                学校信息
            </td>
        </tr>
        <tr>
            <td class="title">
                学校编号 :
            </td>
            <td class="input">
                <dx:ASPxTextBox ID="txtSchoolCode" MaxLength="50" Width="220" runat="server">
                </dx:ASPxTextBox>
            </td>
            <td class="title">
                学校名称 :
            </td>
            <td class="input">
                <dx:ASPxTextBox ID="txtSchoolName" MaxLength="150" Width="220" runat="server">
                </dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td class="title">
                学校类型 :
            </td>
            <td class="input">
                <dx:ASPxComboBox ID="cbxSchoolType" DropDownStyle="DropDownList" runat="server" Width="220">
                </dx:ASPxComboBox>
            </td>
            <td class="title">
                所在省 :
            </td>
            <td class="input">
                <dx:ASPxComboBox ID="cbxProvince" ClientInstanceName="cbxProvince" DropDownStyle="DropDownList"
                    runat="server" Width="220">
                    <ClientSideEvents SelectedIndexChanged="OnProvinceChange" />
                </dx:ASPxComboBox>
            </td>
        </tr>
        <tr>
            <td class="title">
                所在市 :
            </td>
            <td class="input">
                <dx:ASPxComboBox ID="cbxArea" ClientInstanceName="cbxArea" OnCallback="cbxArea_Callback"
                    DropDownStyle="DropDownList" runat="server" Width="220">
                    <ClientSideEvents SelectedIndexChanged="OnAreaChange" />
                </dx:ASPxComboBox>
            </td>
            <td class="title">
                所在区/县 :
            </td>
            <td class="input">
                <dx:ASPxComboBox ID="cbxRegion" ClientInstanceName="cbxRegion" OnCallback="cbxRegion_Callback"
                    DropDownStyle="DropDownList" runat="server" Width="220">
                    <ClientSideEvents SelectedIndexChanged="OnRegionChange" />
                </dx:ASPxComboBox>
            </td>
        </tr>
        <tr>
            <td class="title">
                所在乡/镇 :
            </td>
            <td class="input">
                <dx:ASPxComboBox ID="cbxTown" ClientInstanceName="cbxTown" OnCallback="cbxTown_Callback"
                    DropDownStyle="DropDownList" runat="server" Width="220">
                </dx:ASPxComboBox>
            </td>
            <td class="title">
                所在地址 :
            </td>
            <td class="input">
                <dx:ASPxTextBox ID="txtZipCode" MaxLength="250" Width="220" runat="server">
                </dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td class="title">
                所在地址 :
            </td>
            <td class="input" colspan="3">
                <dx:ASPxTextBox ID="txtAddress" MaxLength="250" Width="695" runat="server">
                </dx:ASPxTextBox>
            </td>
        </tr>
        <tr class="operat">
            <td class="saves" align="right" colspan="2">
                <dx:ASPxButton ID="btnSave" runat="server" Width="100" Text="保存" OnClick="btnSave_Click">
                </dx:ASPxButton>
            </td>
            <td class="backs" align="left" colspan="2">
                <dx:ASPxButton ID="btnBack" runat="server" Width="100" Text="返回" OnClick="btnBack_Click">
                </dx:ASPxButton>
            </td>
        </tr>
    </table>
</asp:Content>
